package com.hx.order.domain;

import java.math.BigDecimal;
import com.hx.common.annotation.Excel;
import com.hx.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 订单商品详情对象 ord_order_item
 *
 * @author ord
 * @date 2023-05-30
 */
public class OrderItem extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderSn;

    /** 商品id */
    @Excel(name = "商品id")
    private Long productId;

    /** 商品图片 */
    @Excel(name = "商品图片")
    private String img;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String name;

    /** 商品价格 */
    @Excel(name = "商品价格")
    private BigDecimal price;

    /** 描述 */
    @Excel(name = "描述")
    private String description;

    /** 订单状态：0--待付款，1--已付款，2--已取消，3--已完成 */
    @Excel(name = "订单状态：0--待付款，1--已付款，2--已取消，3--已完成")
    private Integer productOrderStatus;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setOrderSn(String orderSn)
    {
        this.orderSn = orderSn;
    }

    public String getOrderSn()
    {
        return orderSn;
    }
    public void setProductId(Long productId)
    {
        this.productId = productId;
    }

    public Long getProductId()
    {
        return productId;
    }
    public void setImg(String img)
    {
        this.img = img;
    }

    public String getImg()
    {
        return img;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setPrice(BigDecimal price)
    {
        this.price = price;
    }

    public BigDecimal getPrice()
    {
        return price;
    }
    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }
    public void setProductOrderStatus(Integer productOrderStatus)
    {
        this.productOrderStatus = productOrderStatus;
    }

    public Integer getProductOrderStatus()
    {
        return productOrderStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("orderSn", getOrderSn())
            .append("productId", getProductId())
            .append("img", getImg())
            .append("name", getName())
            .append("price", getPrice())
            .append("description", getDescription())
            .append("productOrderStatus", getProductOrderStatus())
            .toString();
    }
}
